package lt.marsrutai.mobile.android.activity.intent;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class IntentHolder {

    protected Intent intent;

    public IntentHolder(Activity sourceActivity, Class<?> targetActivityClass) {
        intent = new Intent(sourceActivity, targetActivityClass);
    }

    public IntentHolder(Intent intent) {
        this.intent = intent;
    }

    public IntentHolder(Bundle bundle) {
        this.intent = new Intent();
        this.intent.putExtras(bundle);
    }

    public IntentHolder(String broadcastAction) {
        this.intent = new Intent(broadcastAction);
    }

    public Intent getIntent() {
        return intent;
    }
}
